export class PosAttriLvlModel {
    maxHp: number
    attack: number
    def: number
    recoverHp: number
    hit: number
    dodge: number
    crit: number
    critHurt: number
    attackSpeed: number
    reduceSkillCd: number
    constructor(opts: any = {}) {
        this.maxHp = opts.maxHp || 0
        this.attack = opts.attack || 0
        this.def = opts.def || 0
        this.recoverHp = opts.recoverHp || 0
        this.hit = opts.hit || 0
        this.dodge = opts.dodge || 0
        this.crit = opts.crit || 0
        this.critHurt = opts.critHurt || 0
        this.attackSpeed = opts.attackSpeed || 0
        this.reduceSkillCd = opts.reduceSkillCd || 0
    }
}

export class FormationModel {
    lvls: number[]
    pos: number[]
    totalLvl: number
    active: number
    activeLinkage: number
    posAttri: any
    posAttriLvl: PosAttriLvlModel
    constructor(opts: any = {}) {
        this.lvls = opts.lvls || [1, 1, 1, 1]
        this.totalLvl = opts.totalLvl || 0
        this.pos = opts.pos || null
        this.active = opts.active || 0
        this.activeLinkage = opts.activeLinkage
        this.posAttri = opts.posAttri || {}
        this.posAttriLvl = opts.posAttriLvl || new PosAttriLvlModel({})
    }
}